package com.mes.service.yzl;


import com.mes.dao.yzl.JiesuanMapper;
import com.mes.entity.yzl.Condition;
import com.mes.entity.yzl.Receivable;
import com.mes.entity.yzl.Reconciliation;
import com.mes.entity.yzlExtend.ExtendProductor;
import com.mes.entity.yzlExtend.ExtendReceivable;
import com.mes.entity.yzlExtend.ExtendReconciliation;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class JiesuanServiceImpl implements JiesuanService{

    @Resource
    JiesuanMapper jiesuanMapper;

    @Override
    public List<ExtendReconciliation> countAllOne(long customerId) {
        return jiesuanMapper.countAllOne(customerId);
    }

    @Override
    public void addReconciliation(Reconciliation reconciliation) {
        jiesuanMapper.addReconciliation(reconciliation);
    }

    @Override
    public List<ExtendReconciliation> reconciliationList(Condition condition) {
        return jiesuanMapper.reconciliationList(condition);
    }

    @Override
    public Reconciliation findReconciliationBytime(Reconciliation reconciliation) {
        return jiesuanMapper.findReconciliationBytime(reconciliation);
    }

    @Override
    public int updateReconciliationByid(ExtendReconciliation reconciliation) {
        return jiesuanMapper.updateReconciliationByid(reconciliation);
    }

    @Override
    public List<ExtendProductor> reconciliationXq(Reconciliation reconciliation) {
        return jiesuanMapper.reconciliationXq(reconciliation);
    }

    @Override
    public List<Receivable> countAllReceivable() {
        return jiesuanMapper.countAllReceivable();
    }

    @Override
    public void addReceivable(Receivable receivable) {
        jiesuanMapper.addReceivable(receivable);
    }

    @Override
    public List<ExtendReceivable> countAllOutlibP() {
        return jiesuanMapper.countAllOutlibP();
    }

    @Override
    public List<ExtendReceivable> receivableList(Condition condition) {
        return jiesuanMapper.receivableList(condition);
    }

    @Override
    public float checkIsDz(Receivable receivable) {
        return jiesuanMapper.checkIsDz(receivable);
    }

    @Override
    public Receivable findReceivableBytime(Receivable receivable) {
        return jiesuanMapper.findReceivableBytime(receivable);
    }

    @Override
    public int updateReceivable(Receivable receivable) {
        return jiesuanMapper.updateReceivable(receivable);
    }

    @Override
    public int reconciliationListCount(Condition condition) {
        return jiesuanMapper.reconciliationListCount(condition);
    }

    @Override
    public int receivableListCount(Condition condition) {
        return jiesuanMapper.receivableListCount(condition);
    }
}
